package com.ims.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * @author: zk
 * @date: 2022/9/4 15:31
 */
@TableName(value = "table_status_info")
public class Status implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "device_id")
    private String deviceId;

    @TableField(value = "device_name")
    private String deviceName;

    // 设备信息，数据库中为json格式
    @TableField(value = "status_info")
    private String statusInfo;

    @TableField(value = "cpu_usage")
    private String cpuUsage;

    @TableField(value = "cpu_status")
    private Integer cpuStatus;

    @TableField(value = "ram_usage")
    private String ramUsage;

    @TableField(value = "ram_status")
    private Integer ramStatus;

    @TableField(value = "network_send_usage")
    private String networkSendUsage;

    @TableField(value = "network_receive_usage")
    private String networkReceiveUsage;

    @TableField(value = "send_usage_status")
    private Integer sendUsageStatus;

    @TableField(value = "receive_usage_status")
    private Integer receiveUsageStatus;

    @TableField(value = "event_time")
    private String eventTime;

    @TableField(value = "status")
    private String status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getStatusInfo() {
        return statusInfo;
    }

    public void setStatusInfo(String statusInfo) {
        this.statusInfo = statusInfo;
    }

    public String getEventTime() {
        return eventTime;
    }

    public void setEventTime(String eventTime) {
        this.eventTime = eventTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCpuUsage() {
        return cpuUsage;
    }

    public void setCpuUsage(String cpuUsage) {
        this.cpuUsage = cpuUsage;
    }

    public Integer getCpuStatus() {
        return cpuStatus;
    }

    public void setCpuStatus(Integer cpuStatus) {
        this.cpuStatus = cpuStatus;
    }

    public String getRamUsage() {
        return ramUsage;
    }

    public void setRamUsage(String ramUsage) {
        this.ramUsage = ramUsage;
    }

    public Integer getRamStatus() {
        return ramStatus;
    }

    public void setRamStatus(Integer ramStatus) {
        this.ramStatus = ramStatus;
    }

    public String getNetworkSendUsage() {
        return networkSendUsage;
    }

    public void setNetworkSendUsage(String networkSendUsage) {
        this.networkSendUsage = networkSendUsage;
    }

    public String getNetworkReceiveUsage() {
        return networkReceiveUsage;
    }

    public void setNetworkReceiveUsage(String networkReceiveUsage) {
        this.networkReceiveUsage = networkReceiveUsage;
    }

    public Integer getSendUsageStatus() {
        return sendUsageStatus;
    }

    public void setSendUsageStatus(Integer sendUsageStatus) {
        this.sendUsageStatus = sendUsageStatus;
    }

    public Integer getReceiveUsageStatus() {
        return receiveUsageStatus;
    }

    public void setReceiveUsageStatus(Integer receiveUsageStatus) {
        this.receiveUsageStatus = receiveUsageStatus;
    }

    @Override
    public String toString() {
        return "Status{" +
                "id=" + id +
                ", deviceId='" + deviceId + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", statusInfo='" + statusInfo + '\'' +
                ", cpuUsage='" + cpuUsage + '\'' +
                ", cpuStatus=" + cpuStatus +
                ", ramUsage='" + ramUsage + '\'' +
                ", ramStatus=" + ramStatus +
                ", networkSendUsage='" + networkSendUsage + '\'' +
                ", networkReceiveUsage='" + networkReceiveUsage + '\'' +
                ", sendUsageStatus=" + sendUsageStatus +
                ", receiveUsageStatus=" + receiveUsageStatus +
                ", eventTime='" + eventTime + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
